<h:form xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j">   
    <rich:panel>
        <h:panelGrid>
        <h:panelGrid columns="2">
            <h:outputLabel value="Category:" for="want" />
            <rich:inplaceSelect id="want" value="#{wizardBean.drinkCategorySelected}"
            valueChangeListener="#{wizardBean.changeDrink}">
                <f:selectItems value="#{wizardBean.drinkCategory}"/>
                <a4j:support event="onviewactivated" ajaxSingle="true" reRender="drink"/>
            </rich:inplaceSelect>
           
            <h:outputLabel value="Drink:" for="drink" />
            <rich:inplaceSelect id="drink" value="#{wizardBean.drink}" >
                <f:selectItems value="#{wizardBean.drinkList}"/>
            </rich:inplaceSelect>
           
        </h:panelGrid>
            <h:panelGroup>
                <a4j:commandButton value="Previous" action="prev" />
                <a4j:commandButton value="Next" action="next" />
            </h:panelGroup>
        </h:panelGrid>
    </rich:panel>
</h:form>